using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class Left_ventricular_angiographyMap : EntityTypeConfiguration<Left_ventricular_angiography>
    {
        public Left_ventricular_angiographyMap()
        {
            // Primary Key
            this.HasKey(t => t.LVA_ID);

            // Properties
            this.Property(t => t.patient_id)
                .HasMaxLength(20);

            this.Property(t => t.follow_up_id)
                .HasMaxLength(20);

            this.Property(t => t.create_by)
                .HasMaxLength(20);

            this.Property(t => t.LVA_Catheter)
                .HasMaxLength(20);

            this.Property(t => t.LVA_Shape)
                .HasMaxLength(20);

            this.Property(t => t.LVA_Chambers_heart)
                .HasMaxLength(20);

            this.Property(t => t.LVA_LVSMD_Basal_segment_before)
                .HasMaxLength(20);

            this.Property(t => t.LVA_LVSMD_Front_side_walls)
                .HasMaxLength(20);

            this.Property(t => t.LVA_LVSMD_Apical)
                .HasMaxLength(20);

            this.Property(t => t.LVA_LVSMD_Diaphragmatic_surface)
                .HasMaxLength(20);

            this.Property(t => t.LVA_LVSMD_Rear_side_walls)
                .HasMaxLength(20);

            this.Property(t => t.LVA_Mitral_regurgitation)
                .HasMaxLength(20);

            this.Property(t => t.LVA_Diastolic)
                .HasMaxLength(20);

            this.Property(t => t.LVA_Diastolic_detail)
                .HasMaxLength(20);

            this.Property(t => t.LVA_Shrink)
                .HasMaxLength(20);

            this.Property(t => t.LVA_Shrink_detail)
                .HasMaxLength(20);

            this.Property(t => t.LVA_Ejection_fraction)
                .HasMaxLength(20);

            this.Property(t => t.LVA_Ejection_fraction_detail)
                .HasMaxLength(20);

            this.Property(t => t.LVA_Pressure_gradient)
                .HasMaxLength(20);

            this.Property(t => t.LVA_IsShow)
                .IsFixedLength()
                .HasMaxLength(10);

            // Table & Column Mappings
            this.ToTable("Left_ventricular_angiography");
            this.Property(t => t.LVA_ID).HasColumnName("LVA_ID");
            this.Property(t => t.patient_id).HasColumnName("patient_id");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
            this.Property(t => t.create_by).HasColumnName("create_by");
            this.Property(t => t.create_time).HasColumnName("create_time");
            this.Property(t => t.LVA_Catheter).HasColumnName("LVA_Catheter");
            this.Property(t => t.LVA_Shape).HasColumnName("LVA_Shape");
            this.Property(t => t.LVA_Chambers_heart).HasColumnName("LVA_Chambers_heart");
            this.Property(t => t.LVA_LVSMD_Basal_segment_before).HasColumnName("LVA_LVSMD_Basal_segment_before");
            this.Property(t => t.LVA_LVSMD_Front_side_walls).HasColumnName("LVA_LVSMD_Front_side_walls");
            this.Property(t => t.LVA_LVSMD_Apical).HasColumnName("LVA_LVSMD_Apical");
            this.Property(t => t.LVA_LVSMD_Diaphragmatic_surface).HasColumnName("LVA_LVSMD_Diaphragmatic_surface");
            this.Property(t => t.LVA_LVSMD_Rear_side_walls).HasColumnName("LVA_LVSMD_Rear_side_walls");
            this.Property(t => t.LVA_Mitral_regurgitation).HasColumnName("LVA_Mitral_regurgitation");
            this.Property(t => t.LVA_Diastolic).HasColumnName("LVA_Diastolic");
            this.Property(t => t.LVA_Diastolic_detail).HasColumnName("LVA_Diastolic_detail");
            this.Property(t => t.LVA_Shrink).HasColumnName("LVA_Shrink");
            this.Property(t => t.LVA_Shrink_detail).HasColumnName("LVA_Shrink_detail");
            this.Property(t => t.LVA_Ejection_fraction).HasColumnName("LVA_Ejection_fraction");
            this.Property(t => t.LVA_Ejection_fraction_detail).HasColumnName("LVA_Ejection_fraction_detail");
            this.Property(t => t.LVA_Pressure_gradient).HasColumnName("LVA_Pressure_gradient");
            this.Property(t => t.LVA_IsShow).HasColumnName("LVA_IsShow");
        }
    }
}
